package com.apple1.blogdao;

import com.apple1.blogentity.User;
import com.apple1.blogentity.UserExample;
import com.apple1.blogentity.form.UserForm;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

	/**
	 * @param userName
	 * @return
	 */
	UserForm selectByPrimaryKey(String userName);
	
	User selectByUserName(@Param("userName")String userName);
}